package cn.aiyuan.repository;

import cn.aiyuan.entity.Class;
import cn.aiyuan.entity.Teacher;
import org.springframework.data.neo4j.repository.Neo4jRepository;

import java.util.Optional;

public interface TeacherRepository extends Neo4jRepository<Teacher, String> {

    Optional<Teacher> findByName(String name);
}
